package com.whnk.model.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.whnk.model.mapper.FlwTScheduleRunStatusMapper;
import com.whnk.model.domain.FlwTScheduleRunStatus;
import com.whnk.model.service.IFlwTScheduleRunStatusService;

/**
 * 作业执行情况Service业务层处理
 * 
 * @author whnk
 * @date 2021-08-31
 */
@Service
public class FlwTScheduleRunStatusServiceImpl implements IFlwTScheduleRunStatusService 
{
    @Autowired
    private FlwTScheduleRunStatusMapper flwTScheduleRunStatusMapper;

    /**
     * 查询作业执行情况
     * 
     * @param id 作业执行情况主键
     * @return 作业执行情况
     */
    @Override
    public FlwTScheduleRunStatus selectFlwTScheduleRunStatusById(Long id)
    {
        return flwTScheduleRunStatusMapper.selectFlwTScheduleRunStatusById(id);
    }

    /**
     * 查询作业执行情况列表
     * 
     * @param flwTScheduleRunStatus 作业执行情况
     * @return 作业执行情况
     */
    @Override
    public List<FlwTScheduleRunStatus> selectFlwTScheduleRunStatusList(FlwTScheduleRunStatus flwTScheduleRunStatus)
    {
        return flwTScheduleRunStatusMapper.selectFlwTScheduleRunStatusList(flwTScheduleRunStatus);
    }

    /**
     * 新增作业执行情况
     * 
     * @param flwTScheduleRunStatus 作业执行情况
     * @return 结果
     */
    @Override
    public int insertFlwTScheduleRunStatus(FlwTScheduleRunStatus flwTScheduleRunStatus)
    {
        return flwTScheduleRunStatusMapper.insertFlwTScheduleRunStatus(flwTScheduleRunStatus);
    }

    /**
     * 修改作业执行情况
     * 
     * @param flwTScheduleRunStatus 作业执行情况
     * @return 结果
     */
    @Override
    public int updateFlwTScheduleRunStatus(FlwTScheduleRunStatus flwTScheduleRunStatus)
    {
        return flwTScheduleRunStatusMapper.updateFlwTScheduleRunStatus(flwTScheduleRunStatus);
    }

    /**
     * 批量删除作业执行情况
     * 
     * @param ids 需要删除的作业执行情况主键
     * @return 结果
     */
    @Override
    public int deleteFlwTScheduleRunStatusByIds(Long[] ids)
    {
        return flwTScheduleRunStatusMapper.deleteFlwTScheduleRunStatusByIds(ids);
    }

    /**
     * 删除作业执行情况信息
     * 
     * @param id 作业执行情况主键
     * @return 结果
     */
    @Override
    public int deleteFlwTScheduleRunStatusById(Long id)
    {
        return flwTScheduleRunStatusMapper.deleteFlwTScheduleRunStatusById(id);
    }
}
